/* pages/exam/exam-detail/exam-detail.less */
@primary-color: #3498db;
@correct-color: #2ecc71;
@incorrect-color: #e74c3c;
@border-color: #e0e0e0;
@shadow-color: rgba(0, 0, 0, 0.1);
@text-gray: #999;
@danger-color: #ff4d4f;
@success-color: #52c41a;

.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #f5f7fa;
  box-sizing: border-box;
}

.head-bar {
  font-weight: 600;
  padding: 10rpx;
  text-align: center;
  // background: #fff;
  // box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  // position: relative;
  z-index: 10;
}

/* 进度条区域 */
.progress-bar {
  display: flex;
  width: 100vw;
  align-items: center;
  padding: 20rpx 0;
  background: #fff;
  border-bottom: 1rpx solid #f0f0f0;
  position: relative;
  z-index: 10;

  .batch-text {
    flex: 0 0 auto;
    font-size: 26rpx;
    color: @text-gray;
    padding-left: 40rpx;
  }

  .percent-text {
    flex: 0 0 auto;
    font-size: 28rpx;
    color: #666;
    min-width: 80rpx;
    text-align: right;
    font-weight: 500;
    margin-left: auto;
    padding-right: 40rpx;
  }
}

.optimized-swiper {
  flex: 1;
  width: 100%;
  height: 100%;
  border-radius: 16rpx;
  overflow: hidden;
}

.swiper-item {
  display: flex;
  justify-content: center;
  padding: 20rpx;
  box-sizing: border-box;
  height: 100%;

  &.visible {
    opacity: 1;
  }

  &.hidden {
    opacity: 0;
  }
}

.question-scroll {
  width: 100%;
  height: 100%;
}



/* 底部交卷功能区 */
.action-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 20rpx 30rpx;
  background: #fff;
  box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05);
  z-index: 100;

  button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80rpx;
    border-radius: 40rpx;
    font-size: 28rpx;
    line-height: 1;
    padding: 0 30rpx;
    transition: all 0.3s ease;

    icon {
      margin-right: 10rpx;
    }
  }
}

.prev-btn {
  background: @primary-color;
  color: white;

  &:active {
    background: #e0e0e0;
  }
}

.next-btn {
  background: @primary-color;
  color: white;

  &:active {
    background: darken(@primary-color, 10%);
  }
}

.submit-btn {
  background: #d9d9d9;
  color: #8c8c8c;

  &.active {
    background: @danger-color;
    color: white;
  }

  &:active {
    background: darken(@danger-color, 10%);
  }
}